<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/21
 * Time: 10:15
 */
namespace  Admin\Model;
use Base\Model\BaseModel;

class DefaultInspectioninfoModel extends BaseModel
{
    protected $_link=array(
        //检查单
        'type' => array(
            'mapping_type' => self::BELONGS_TO,
            'class_name'    => 'inspectioninfo',
            'foreign_key' => 'inspectioninfo_id',
            'parent_key' => 'id',
        ),
    );
    protected $_auto = array(
        array('status', '1'),
    );
}